package com.xieyingwangluo.yxpart.api;

import com.xieyingwangluo.yxpart.bean.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@Api(tags = "不能使用,编写中.....wallet接口")
@Controller
@RequestMapping(value = "/api/v1/wallet")
public class WalletBaseRest extends BaseRest {

    //显示：

    @ApiOperation(value = "显示钱包信息", notes = "显示钱包信息", produces = "application/json")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "noid", value = "钱包id", required = true, dataType = "String", paramType = "query", defaultValue = "123456")
    })
    @ResponseBody
    @GetMapping(value = "/selO")
    public Result selO(@RequestHeader(name = "Authorization", defaultValue = "token") String token,
                       @RequestParam("noid") String noid
    ) {
        logger.info("显示钱包信息 start....");
        return Result.generate(0, "查询成功", null);
    }

}
